package com.ruoyi.hhsw.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作计划对象 hhsw_work_plan
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class WorkPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 计划标题 */
    @Excel(name = "计划标题")
    private String title;

    /** 计划内容 */
    @Excel(name = "计划内容")
    private String content;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private Long departmentId;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creatorId;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 当前进度（0-100） */
    @Excel(name = "当前进度", readConverterExp = "0=-100")
    private Long progress;

    /** 状态（1-进行中 2-已完成 3-延期） */
    @Excel(name = "状态", readConverterExp = "1=-进行中,2=-已完成,3=-延期")
    private Long status;

    /** 工作年份 */
    @Excel(name = "工作年份")
    private Long workYear;

    /** 工作季度 */
    @Excel(name = "工作季度")
    private Long workQuarter;

     /** 文件附件 */
     @Excel(name = "文件附件")
     private String fileAttachments;

    private List<PlanNode> planNodeList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setProgress(Long progress) 
    {
        this.progress = progress;
    }

    public Long getProgress() 
    {
        return progress;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setWorkYear(Long workYear) 
    {
        this.workYear = workYear;
    }

    public Long getWorkYear() 
    {
        return workYear;
    }
    public void setWorkQuarter(Long workQuarter) 
    {
        this.workQuarter = workQuarter;
    }

    public Long getWorkQuarter() 
    {
        return workQuarter;
    }

    public List<PlanNode> getPlanNodeList() {
        return planNodeList;
    }

    public void setPlanNodeList(List<PlanNode> planNodeList) {
        this.planNodeList = planNodeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("departmentId", getDepartmentId())
            .append("creatorId", getCreatorId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("progress", getProgress())
            .append("status", getStatus())
            .append("workYear", getWorkYear())
            .append("workQuarter", getWorkQuarter())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
